package clientset

import (
	"k8s.io/apimachinery/pkg/runtime/schema"
	"k8s.io/client-go/rest/fake"
	"testing"
)

func TestV1Alpha1Client_TriggerInstance(t *testing.T) {
	t.Run("ok", func(t *testing.T) {
		cli := fake.RESTClient{
			NegotiatedSerializer: nil,
			GroupVersion:         schema.GroupVersion{},
			VersionedAPIPath:     "ver",
			Err:                  nil,
			Req:                  nil,
			Client:               nil,
			Resp:                 nil,
		}
		c := &V1Alpha1Client{RestClient: &cli}
		c.TriggerInstance()
	})
}

func TestV1Alpha1Client_Template(t *testing.T) {
	t.Run("ok", func(t *testing.T) {
		cli := fake.RESTClient{
			NegotiatedSerializer: nil,
			GroupVersion:         schema.GroupVersion{},
			VersionedAPIPath:     "ver",
			Err:                  nil,
			Req:                  nil,
			Client:               nil,
			Resp:                 nil,
		}
		c := &V1Alpha1Client{RestClient: &cli}
		c.Template("ns")
	})
}

func TestV1Alpha1Client_Trigger(t *testing.T) {
	t.Run("ok", func(t *testing.T) {
		cli := fake.RESTClient{
			NegotiatedSerializer: nil,
			GroupVersion:         schema.GroupVersion{},
			VersionedAPIPath:     "ver",
			Err:                  nil,
			Req:                  nil,
			Client:               nil,
			Resp:                 nil,
		}
		c := &V1Alpha1Client{RestClient: &cli}
		c.Trigger("ns")
	})
}

func TestV1Alpha1Client_Scope(t *testing.T) {
	t.Run("ok", func(t *testing.T) {
		cli := fake.RESTClient{
			NegotiatedSerializer: nil,
			GroupVersion:         schema.GroupVersion{},
			VersionedAPIPath:     "ver",
			Err:                  nil,
			Req:                  nil,
			Client:               nil,
			Resp:                 nil,
		}
		c := &V1Alpha1Client{RestClient: &cli}
		c.Scope("ns")
	})
}
